package com.cn.boot.spring.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.util.Objects;

@Entity
@Data
//生成链式调用方法
@Builder
//自动生成无参构造函数
@NoArgsConstructor
//自动生成有参构造函数
@AllArgsConstructor
@Table(name = "limits", schema = "spring")
public class LimitsEntity {
    @Id
    private Integer id;
    private String name;
    private String code;
    private Integer pid;

}
